
<div class="cateMenu" >
  <div class="container">

    <div style="display:block" class="cateMenu_left left">
      <?php  foreach($this->catMenus as $rs){  ?>
        <div class="cateMenu_left_list">
          <div class="cateMenu_left_list1">
            <div class="cateMenu_list">
              <h3><a href="<?php echo $rs['url']; ?>"><?php echo $rs['label'] ?></a></h3>
              <?php  if(!empty($rs['data'])){ ?>
              <div class="cate_main_left">
                <?php foreach($rs['data'] as $data){ ?>
                  <a href="<?php echo $data['url']; ?>"><?php echo $data['label'] ?></a>
                <?php } ?>
                
              </div>
              <?php } ?>
            </div>
          </div>
        </div>

      <?php  } ?>

    </div>


<link rel="stylesheet" href="<?php echo yii::app()->theme->baseUrl; ?>/assets/js/lib/FlexSlider/flexslider.css">
<script type="text/javascript" src="<?php echo yii::app()->theme->baseUrl; ?>/assets/js/lib/FlexSlider/jquery.flexslider.js"></script>


    <div class="flexslider cateMenu_mid left">
      <ul class="slides">
        <?php foreach($adList as $key => $ad){ ?>

        <li data-key="<?php echo $key; ?>" data-background="<?php echo $ad->attach ?>" ><a title="<?php echo $ad->link_title ?>" href="<?php echo $ad->link; ?>"><img  alt="<?php echo $ad->link_title ?>" class="img" src="<?php echo $ad->link_img; ?>"></a></li>


        <?php } ?>

      </ul>
   </div>


    <script type="text/javascript">

        $('.flexslider').flexslider({
/*          after:function(flexs){
            var key = flexs.animatingTo;
            var background = $("[data-key='"+key+"']").data('background');
            if(background){
              $(".cateMenu").css({background:background});
            }
          }*/
        });


    </script>



    <div class="clear"></div>
  </div>

</div>

<!-- <div style="display:none" class="container banner">

    <img src="<?php //echo Yii::app()->theme->baseUrl; ?>/assets/images/mmj/banner.png">




</div> -->




<!-- 一折网 -->

<div class="container">
    <input type="hidden" id="record_product_id" value="0" />
    <?php foreach ($custom_blocks as $block): ?>
        <div class="texuan-col goodlist">
            <div class="col-md-12">
                <div class="title">
                    <h3><i class="front-spt"></i><?php echo $block['block_title']; ?> <small>最高性价比</small></h3>
                </div>
            </div>
            <div class="body row">
                <?php foreach ($block['goods'] as $good): ?>
                    <?php include $this->getViewFile('../lib/goodlist'); ?>
                <?php endforeach; ?>
                <div class="clearfix"></div>
            </div>
        </div>
    <?php endforeach; ?>
    <div class="tehui-col goodlist">
        <div class="col-md-12">
            <div class="title">
                <div class="pull-left">
                    <span class="btn txslide active " id="tx"><em>今日</em>特惠</span> 
                    <!--<span class="btn dj-btn txslide" id="tj"><em>秋冬</em>新款</span>-->
                </div>
                <ul class="pull-right">
                    <li><a href="/front/index/index/sort/add_time.html">新品<i class="front-spt down"></i></a></li>
                    <li><a href="/front/index/index/sort/sales.html">销量<i class="front-spt down"></i></a></li>
                    <li><a href="/front/index/index/sort/promo_price.html">价格<i class="front-spt down"></i></a></li>
                    <li><a href="/front/index/index/page/2.html">更多<i class="front-spt more"></i></a></li>
                </ul>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="body row txslidebody" id="txbody">
          <!-- 瀑布流分页参数  -->
          <a href="javascript:void(0)" class="showmore" data-url="/front/index/ajaxgoods.html" data-page="<?php echo $page; ?>" data-paginal="<?php echo Yii::app()->params->page_size['sault_index']; ?>" data-sum="<?php echo ConfigModel::model()->getConfig('home_num'); ?>"></a> 
        </div>
        <div class="body row txslidebody" id="tjbody">
           
        </div>
        <div class="clearfix"></div>
    <div id="loading" data-ajax="1">
      <img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/images/loading.gif" style="display:inline;"/>
      <div style="display:inline;">正在加载中...</div>
    </div>
        <div class="pager" id="pager" style="display:none">
            <?php echo $pages; ?>
        </div>
    </div>
</div><script>
var pagetype = 'home';
var share_home = true;  //是否显示右侧浮动层
</script>

